package design;
import java.io.*;

/** Filter to work with JFileChooser to select xml file types. **/
public class XMLFilter extends javax.swing.filechooser.FileFilter
{
  public boolean accept (File f) {
    return f.getName ().toLowerCase ().endsWith (".xml")
          || f.isDirectory ();
  }
 
  public String getDescription () {
    return "Xml files (*.xml)";
  }
} // class JavaFilter